package com.hdoit.kylin.web.baseInfo.modelconfig;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.common.enums.regular.MathRegularExpressions;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.RequiredAttribute;
import com.tennetcn.component.attribute.RegularExpressionAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      guoshuren
 * @email       
 * @createtime  2018年03月03日 17:27:11
 * @comment
 */
public class TermConfig extends ModelMetadataAttributeConfiguration{
    public TermConfig(){
        this.setProperty("TermName")
            .hasAttribute(new DisplayNameAttribute("学期名称"))
            .hasAttribute(new RequiredAttribute("学期名称为必填项"));

        this.setProperty("startDate")
            .hasAttribute(new DisplayNameAttribute("学期开始时间"))
            .hasAttribute(new RequiredAttribute("学期开始时间为必填项"));

        this.setProperty("endDate")
            .hasAttribute(new DisplayNameAttribute("学期结束时间"))
            .hasAttribute(new RequiredAttribute("学期结束时间为必填项"));

    }
}